Carbon


DrawThemeTickMark

Header: Appearance.h Carbon status: Supported

Draws a tick mark.

OSStatus DrawThemeTickMark (
    const Rect *bounds, 
    ThemeDrawState state
);
bounds

A pointer to a structure of type Rect. Before calling DrawThemeTickMark, set the rectangle to the position that contains the tick mark, in local coordinates. Note that tick marks are of a fixed—3 pixel by 8 pixel—size.

state

A value of type ThemeDrawState. Pass a constant specifying the state in which to draw the tick mark; see “Theme Draw State Constants”. The tick mark can be drawn as active or inactive; passing kThemeStatePressed produces an error.

function result

A result code.

DISCUSSION

The DrawThemeTickMark function draws a single theme-compliant tick mark. To draw a complete set of tick marks for a track, call the function DrawThemeTrackTickMarks.

VERSION NOTES

This function is available with Appearance Manager 1.1 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)